--发布导出记录表;
IF NOT EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[sys_crf_form_releaselog]') AND type IN ('U'))

CREATE TABLE [dbo].[sys_crf_form_releaselog] (
                                                 [id] nvarchar(64)   NOT NULL,
                                                 [code] nvarchar(64)   NULL,
                                                 [name] nvarchar(max)   NULL,
                                                 [formversion] nvarchar(64)   NULL,
                                                 [releasetime] datetime  NULL
);


--机构表;

IF NOT EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[sys_crf_form_organization]') AND type IN ('U'))

CREATE TABLE [dbo].[sys_crf_form_organization] (
                                                   [id] nvarchar(64)   NOT NULL,
                                                   [code] nvarchar(64)   NULL,
                                                   [name] nvarchar(max)   NULL,
                                                   [formversion] nvarchar(64)   NULL,
                                                   [releasetime] datetime  NULL
);